package io.sage.modules.outwarehouse.service.impl;

import java.util.Date;
import java.util.List;
import java.util.Map;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import io.sage.modules.outwarehouse.dao.BEmployeeAccessRecordMapper;
import io.sage.modules.outwarehouse.entity.BEmployeeAccessRecord;
import io.sage.modules.outwarehouse.service.BEmployeeAccessRecordService;

@Service("employeeAccessRecordService")
public class BEmployeeAccessRecordServiceImpl implements BEmployeeAccessRecordService {
	
	@Autowired
	private BEmployeeAccessRecordMapper employeeAccessRecordMapper;
	
	@Override
	public List<BEmployeeAccessRecord> selectEmployeeAccessRecordList(Map<String, Object> params) {
		return employeeAccessRecordMapper.selectEmployeeAccessRecordList(params);
	}

	@Override
	public int deleteBatchIds(Integer[] ids) {
		return employeeAccessRecordMapper.deleteBatchIds(ids);
	}

	@Override
	public BEmployeeAccessRecord selectByPrimaryKey(Integer id) {
		return employeeAccessRecordMapper.selectByPrimaryKey(id);
	}

	@Override
	public int updateByPrimaryKeySelective(BEmployeeAccessRecord employeeAccessRecord) {
		employeeAccessRecord.setUpdateTime(new Date());
		return employeeAccessRecordMapper.updateByPrimaryKeySelective(employeeAccessRecord);
	}

	@Override
	public Integer selectNewCount(Map<String, Object> params) {
		return employeeAccessRecordMapper.selectNewCount(params);
	}

	@Override
	public int insertBatchBygoodsIds(Map<String, Object> params) {

		return employeeAccessRecordMapper.insertBatchBygoodsIds(params);
	}

}
